package com.dwd.user.constant;

/**
 * @Description: TODO
 * @Author 汶狄
 * @Date 2021/1/19 12:32
 * @Version 1.0
 */
public class WeChatConstant {
    /**
     * 获取授权码地址
     */
    public static final String CODE_URL = "https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect";
    /**
     * APPID
     */
    public static final String APPID = "wxd853562a0548a7d0";
    /**
     * 密钥
     */
    public static final String SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
    /**
     * 支持域名不一致
     */
    public static final String SCOPE = "snsapi_login";
    /**
     * 回调地址
     */
    public static final String REDIRECT_URI = "http://bugtracker.itsource.cn/wechat/callback";
    /**
     * 请求access_token地址
     */
    public static final String ACCESS_TOKEN_URI = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";
    /**
     * 获取用户资源
     */
    public static final String USERINFO_URL = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

}
